package com.usian.common.intercept;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Component
public class AdminRefechInterceptConfig implements WebMvcConfigurer {

    //在配置类里边配置拦截器
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AdminRefechIntercept()).addPathPatterns("/**");
    }
}
